﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Abp.MSMQ
{
    /// <summary>
    /// 消息处理接口
    /// </summary>
    /// <typeparam name="TMessage"></typeparam>
   public interface IMessageHandler
    {
        /// <summary>
        /// 处理消息，如果失败，抛出异常。
        /// </summary>
        /// <param name="message"></param>
        void Handle(object message);
    }
}
